/* ========================================
   CONFIGURACIÓN GENERAL
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
}

body {
    width: 100%;
    min-height: 100vh;

    font-family: Arial, Helvetica, sans-serif;

    background: #08090d;
    color: white;

    overflow-x: hidden;
    overflow-y: auto;
}


/* ========================================
   FONDO
======================================== */

.fondo {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 45%,
            #1b1513 0%,
            #0c0c10 40%,
            #050609 100%
        );

    z-index: -1;
}


/* ========================================
   LUCES
======================================== */

.luz {
    position: absolute;

    border-radius: 50%;

    filter: blur(80px);

    opacity: 0.65;

    pointer-events: none;
}

.luz-1 {
    width: clamp(180px, 25vw, 350px);
    height: clamp(180px, 25vw, 350px);

    top: -180px;
    right: -70px;

    background: #ff8b35;
}

.luz-2 {
    width: clamp(180px, 22vw, 300px);
    height: clamp(180px, 22vw, 300px);

    left: -130px;
    bottom: -100px;

    background: #b84d16;
}

.luz-3 {
    width: clamp(160px, 18vw, 240px);
    height: clamp(160px, 18vw, 240px);

    right: -80px;
    bottom: -100px;

    background: #ff7b27;
}


/* ========================================
   FORMAS DEL FONDO
======================================== */

.circulo {
    position: absolute;

    border: 2px solid rgba(255, 137, 54, 0.65);

    border-radius: 50%;

    box-shadow:
        0 0 20px rgba(255, 127, 42, 0.25),
        inset 0 0 20px rgba(255, 127, 42, 0.08);

    pointer-events: none;
}


/* PC / Laptop */

.circulo-1 {
    width: min(780px, 65vw);
    height: min(780px, 65vw);

    left: 18%;
    top: 45%;
}

.circulo-2 {
    width: min(650px, 55vw);
    height: min(650px, 55vw);

    right: -280px;
    bottom: -300px;
}


/* ========================================
   PUNTOS DECORATIVOS
======================================== */

.puntos {
    position: absolute;

    display: grid;

    grid-template-columns: repeat(4, 5px);

    gap: 10px;

    pointer-events: none;
}

.puntos span {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #f99a55;

    box-shadow:
        0 0 8px rgba(255, 142, 71, 0.7);
}

.puntos-1 {
    right: 7%;
    top: 7%;
}

.puntos-2 {
    left: 2%;
    bottom: 14%;
}


/* ========================================
   CONTENEDOR PRINCIPAL
======================================== */

.contenedor {
    width: 100%;

    min-height: 100vh;

    display: flex;

    justify-content: center;
    align-items: center;

    padding: clamp(20px, 5vw, 60px);
}


/* ========================================
   TARJETA LOGIN
======================================== */

.login-card {
    width: min(660px, 100%);

    padding: clamp(30px, 5vw, 60px)
             clamp(22px, 4vw, 54px);

    border-radius: clamp(16px, 2vw, 22px);

    background:
        linear-gradient(
            135deg,
            rgba(35, 35, 43, 0.85),
            rgba(15, 16, 21, 0.78)
        );

    border: 1px solid rgba(255, 153, 91, 0.65);

    box-shadow:
        0 0 35px rgba(255, 115, 40, 0.15),
        inset 0 0 30px rgba(255, 157, 91, 0.04);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);
}


/* ========================================
   MARCA / LOGO
======================================== */

.marca {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: clamp(12px, 2vw, 18px);

    margin-bottom: clamp(28px, 5vw, 45px);
}

.logo {
    width: clamp(50px, 7vw, 65px);
    height: clamp(50px, 7vw, 65px);

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: clamp(10px, 1.5vw, 12px);

    background:
        linear-gradient(
            135deg,
            #ffb36e,
            #ff9146
        );

    color: white;

    font-size: clamp(18px, 2.5vw, 23px);

    font-weight: bold;

    box-shadow:
        0 0 25px rgba(255, 139, 62, 0.3);
}

.marca-texto {
    min-width: 0;
}

.marca-texto h2 {
    font-size: clamp(20px, 3vw, 25px);

    letter-spacing: 1px;
}

.marca-texto p {
    margin-top: 4px;

    color: #a9a9b8;

    font-size: clamp(13px, 2vw, 16px);
}


/* ========================================
   TÍTULO
======================================== */

.titulo {
    margin-bottom: clamp(25px, 4vw, 35px);
}

.titulo h1 {
    font-size: clamp(28px, 5vw, 42px);

    line-height: 1.15;

    font-weight: 700;

    margin-bottom: 8px;
}

.titulo h1 span {
    color: #ff9c5b;
}

.titulo p {
    color: #aeb0be;

    font-size: clamp(14px, 2.2vw, 18px);

    line-height: 1.5;
}


/* ========================================
   CAMPOS
======================================== */

.campo {
    position: relative;

    width: 100%;

    min-height: 60px;

    height: clamp(60px, 7vw, 78px);

    margin-bottom: clamp(15px, 2.5vw, 22px);

    display: flex;

    align-items: center;

    border-radius: clamp(13px, 2vw, 17px);

    background: rgba(35, 37, 47, 0.85);

    border: 1px solid rgba(122, 124, 139, 0.45);

    transition: 0.3s ease;
}

.campo:focus-within {
    border-color: #ff9b58;

    box-shadow:
        0 0 0 3px rgba(255, 145, 77, 0.1),
        0 0 25px rgba(255, 130, 55, 0.12);
}


/* ========================================
   ICONOS
======================================== */

.icono {
    width: clamp(55px, 8vw, 70px);

    flex-shrink: 0;

    display: flex;

    justify-content: center;
    align-items: center;
}

.icono svg {
    width: clamp(24px, 4vw, 31px);
    height: clamp(24px, 4vw, 31px);

    fill: none;

    stroke: #f4f4f6;

    stroke-width: 1.8;
}


/* ========================================
   INPUTS
======================================== */

.campo input {
    flex: 1;

    min-width: 0;

    width: 100%;
    height: 100%;

    border: none;
    outline: none;

    background: transparent;

    color: white;

    font-size: clamp(15px, 2.2vw, 19px);

    padding-right: clamp(8px, 2vw, 20px);
}

.campo input::placeholder {
    color: #a8a9b5;

    opacity: 1;
}


/* ========================================
   BOTÓN MOSTRAR CONTRASEÑA
======================================== */

.ver-password {
    width: clamp(50px, 8vw, 65px);
    height: 100%;

    flex-shrink: 0;

    border: none;

    background: transparent;

    cursor: pointer;

    display: flex;

    justify-content: center;
    align-items: center;
}

.ver-password svg {
    width: clamp(22px, 3.5vw, 27px);
    height: clamp(22px, 3.5vw, 27px);

    fill: none;

    stroke: #eeeeee;

    stroke-width: 1.7;

    transition: 0.2s;
}

.ver-password:hover svg {
    stroke: #ff9b58;
}


/* ========================================
   MENSAJES
======================================== */

.mensaje {
    min-height: 25px;

    text-align: center;

    font-size: clamp(13px, 1.8vw, 15px);

    margin: -5px 0 15px;

    line-height: 1.4;

    transition: 0.3s;
}

.mensaje.error {
    color: #ff7777;
}

.mensaje.correcto {
    color: #70e5a1;
}


/* ========================================
   BOTÓN INICIAR SESIÓN
======================================== */

.btn-login {
    width: 100%;

    height: clamp(60px, 7vw, 78px);

    border: none;

    border-radius: clamp(13px, 2vw, 17px);

    background:
        linear-gradient(
            135deg,
            #ffae68,
            #ff944c
        );

    color: white;

    font-size: clamp(16px, 2.5vw, 20px);

    font-weight: 600;

    cursor: pointer;

    display: flex;

    justify-content: center;
    align-items: center;

    gap: clamp(10px, 2vw, 15px);

    box-shadow:
        0 10px 30px rgba(255, 130, 48, 0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.btn-login svg {
    width: clamp(24px, 4vw, 30px);
    height: clamp(24px, 4vw, 30px);

    fill: none;

    stroke: white;

    stroke-width: 1.8;

    flex-shrink: 0;
}

.btn-login:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 35px rgba(255, 130, 48, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}


/* ========================================
   RECUPERAR CONTRASEÑA
======================================== */

.recuperar {
    margin-top: clamp(25px, 4vw, 35px);

    display: flex;

    align-items: center;

    gap: clamp(8px, 2vw, 18px);
}

.recuperar .linea {
    height: 1px;

    flex: 1;

    min-width: 15px;

    background:
        rgba(180, 180, 190, 0.4);
}

.recuperar a {
    color: #ffb06f;

    font-size: clamp(11px, 1.8vw, 16px);

    font-weight: 600;

    white-space: nowrap;

    text-decoration: underline;

    text-align: center;

    transition: 0.2s;
}

.recuperar a:hover {
    color: #ffc99c;
}


/* ========================================
   TABLET
   768px - 1024px
======================================== */

@media (min-width: 768px) and (max-width: 1024px) {

    .contenedor {
        padding: 35px;
    }

    .login-card {
        width: min(620px, 100%);
    }

    .circulo-1 {
        width: 650px;
        height: 650px;

        left: 5%;
        top: 50%;
    }

    .circulo-2 {
        width: 500px;
        height: 500px;

        right: -250px;
        bottom: -250px;
    }
}


/* ========================================
   CELULAR
   Hasta 767px
======================================== */

@media (max-width: 767px) {

    body {
        overflow-y: auto;
    }

    .contenedor {
        min-height: 100vh;

        padding:
            25px
            16px;
    }

    .login-card {
        width: 100%;

        padding:
            32px
            20px;

        border-radius: 18px;
    }

    .marca {
        margin-bottom: 30px;
    }

    .titulo {
        margin-bottom: 25px;
    }

    .titulo h1 {
        font-size: clamp(27px, 8vw, 34px);
    }

    .titulo p {
        font-size: 14px;
    }

    .campo {
        height: 62px;

        min-height: 62px;

        margin-bottom: 16px;
    }

    .icono {
        width: 55px;
    }

    .campo input {
        font-size: 16px;
    }

    .ver-password {
        width: 55px;
    }

    .btn-login {
        height: 62px;

        font-size: 17px;
    }

    .recuperar {
        margin-top: 27px;
    }

    .recuperar a {
        font-size: 12px;
    }

    /* Reducimos los elementos decorativos */

    .circulo-1 {
        width: 450px;
        height: 450px;

        left: -55%;
        top: 50%;
    }

    .circulo-2 {
        width: 400px;
        height: 400px;

        right: -260px;
        bottom: -230px;
    }

    .puntos-1 {
        right: 5%;
        top: 3%;
        transform: scale(0.75);
    }

    .puntos-2 {
        left: 2%;
        bottom: 5%;
        transform: scale(0.75);
    }

    .luz-1 {
        top: -120px;
        right: -120px;
    }

    .luz-2 {
        left: -120px;
        bottom: -120px;
    }

    .luz-3 {
        right: -120px;
        bottom: -120px;
    }
}


/* ========================================
   CELULAR PEQUEÑO
   Hasta 380px
======================================== */

@media (max-width: 380px) {

    .contenedor {
        padding:
            18px
            10px;
    }

    .login-card {
        padding:
            28px
            16px;
    }

    .marca {
        gap: 10px;

        margin-bottom: 25px;
    }

    .logo {
        width: 48px;
        height: 48px;

        font-size: 17px;
    }

    .marca-texto h2 {
        font-size: 19px;
    }

    .marca-texto p {
        font-size: 11px;
    }

    .titulo h1 {
        font-size: 26px;
    }

    .titulo p {
        font-size: 13px;
    }

    .campo {
        height: 58px;
        min-height: 58px;
    }

    .icono {
        width: 48px;
    }

    .icono svg {
        width: 23px;
        height: 23px;
    }

    .campo input {
        font-size: 14px;
    }

    .ver-password {
        width: 48px;
    }

    .btn-login {
        height: 58px;

        font-size: 15px;
    }

    .btn-login svg {
        width: 23px;
        height: 23px;
    }

    .recuperar {
        gap: 6px;
    }

    .recuperar a {
        font-size: 10px;
    }
}


/* ========================================
   CELULAR EN HORIZONTAL
======================================== */

@media (max-height: 600px) and (orientation: landscape) {

    .contenedor { 
        min-height: auto;

        padding:
            25px
            20px;
    }

    .login-card {
        margin: 20px 0;

        padding:
            25px
            30px;
    }

    .marca {
        margin-bottom: 20px;
    }

    .titulo {
        margin-bottom: 20px;
    }

    .titulo h1 {
        font-size: 28px;
    }

    .campo {
        height: 55px;
        min-height: 55px;

        margin-bottom: 12px;
    }

    .btn-login {
        height: 55px;
    }

    .recuperar {
        margin-top: 20px;
    }
}


/* ========================================
   PANTALLAS GRANDES
   1400px+
======================================== */

@media (min-width: 1400px) {

    .login-card {
        width: 680px;
    }

    .contenedor {
        padding: 60px;
    }
}


/* ========================================
   PANTALLAS MUY GRANDES
   1920px+
======================================== */

@media (min-width: 1920px) {

    .login-card {
        width: 700px;

        padding: 65px 60px;
    }

    .titulo h1 {
        font-size: 44px;
    }

    .titulo p {
        font-size: 19px;
    }
}